﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Chothoadon.ascx.cs" Inherits="WebUserControl_Chothoadon" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc2" %>
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/datePicker.css")%>' type="text/css" />
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />

<script type="text/javascript">
     function pageLoad() {
       $("#<%= bt_chot.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
      
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script>  
<style type="text/css">
    .display{ display:none;}
</style>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <fieldset>
        <legend>Chốt Hóa Đơn Bán Hàng ,Trả Hàng</legend>
        <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
         &nbsp;Ngày &nbsp;
        <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
         &nbsp;&nbsp;
        <asp:Label ID="lblLocation" runat="server" Visible="false" Text="Label"></asp:Label>
        <br />
      <div class="fm-req">
            <label for="txtMaTuVanVien">Loại hóa đơn:</label>
             <asp:DropDownList ID="Ddl_loaihoadon" runat="server" AutoPostBack="True"  Width="200px" onselectedindexchanged="Ddl_loaihoadon_SelectedIndexChanged">
                    <asp:ListItem Text="Chọn loại chứng từ....." Value="N" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Hóa Đơn Bán Hàng" Value="I"></asp:ListItem>
                    <asp:ListItem Text="Hóa Đơn Trả Hàng" Value="C"></asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="bt_chot" runat="server" Text="Chốt" onclick="bt_chot_Click" Width="100px" />
     </div>
   </fieldset>
     
            <asp:Panel ID="Panel1" runat="server" ScrollBars="Vertical" Height="400px">
            <asp:GridView ID="gv_hoadon" runat="server" 
                AutoGenerateColumns="False" BackColor="White" BorderColor="#CC9966" 
                BorderStyle="None" BorderWidth="1px" CellPadding="4" Height="24px" 
                PageSize="12" style="font-family: Arial, Helvetica, sans-serif" 
                Width="697px" >
                <RowStyle BackColor="White" ForeColor="#330099" />
                <Columns>
                    <asp:TemplateField HeaderText="Chọn ?">
                        <EditItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="15px" Wrap="False" />
                        <ItemStyle HorizontalAlign="Center" Width="15px" Wrap="False" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="tranno" HeaderText="Số HĐ">
                        <HeaderStyle Width="50px" Wrap="True" />
                        <ItemStyle HorizontalAlign="Center" Width="50px" Wrap="True" />
                    </asp:BoundField>
                    <asp:BoundField DataField="customer_key" HeaderText="Mã KH">
                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                        <ItemStyle HorizontalAlign="Center" Wrap="True" />
                    </asp:BoundField>
                     <asp:BoundField DataField="Customer_name" HeaderText="Khách Hàng">
                        <HeaderStyle HorizontalAlign="Center" Width="500px" Wrap="False" />
                        <ItemStyle HorizontalAlign="Center" Width="500px" Wrap="False" />
                    </asp:BoundField>
                     <asp:BoundField DataField="doctot" HeaderText="Tiền Hóa Đơn">
                        <HeaderStyle HorizontalAlign="Center" Width="80px" Wrap="False" />
                        <ItemStyle HorizontalAlign="Center" Width="80px" Wrap="False" />
                    </asp:BoundField>
                     <asp:BoundField DataField="ARPass"   HeaderText="ARPass">
                        <HeaderStyle HorizontalAlign="Center" CssClass="display"  Width="80px" Wrap="False" />
                        <ItemStyle HorizontalAlign="Center" CssClass="display" Width="80px" Wrap="False" />
                    </asp:BoundField>
                     <asp:BoundField DataField="INPass"  HeaderText="INPass">
                        <HeaderStyle HorizontalAlign="Center"  CssClass="display"  Width="80px" Wrap="False" />
                        <ItemStyle HorizontalAlign="Center" CssClass="display" Width="80px" Wrap="False" />
                    </asp:BoundField>
                </Columns>
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
            </asp:GridView>
            </asp:Panel>
            
        
</ContentTemplate>
</asp:UpdatePanel>
<uc2:uscMsgBox ID="uscMsgBox1" runat="server" />


